home *** CD-ROM | disk | FTP | other *** search
- // ===============================================================
- // Vertex Program:
- // Description:
- // Last Update: 14/08/2003
- // Coder: Andrey Honich
- // ===============================================================
-
- #include "../CGVPMacro.csi"
-
-
- VertAttributes { POSITION_3 TEXCOORD0_2 }
-
- MainInput { VIEWPROJ_MATRIX }
- DeclarationsScript
- {
- IN_T0
- OUT_T0_T1
- }
- PositionScript = PosCommon
- CoreScript
- {
- OUT.Tex0.xy = IN.TexCoord0.xy;
- OUT.Tex1.xy = dot(ModelViewProj._31_32_33_34, vPos) / dot(ModelViewProj._41_42_43_44, vPos);
- }
-